﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;
using DefenseQuestion.Domain;

namespace DefenseQuestion
{
    /// <summary>
    /// 用户表
    /// </summary>
    [Table("User")]
    public class User : Audit
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        [Key]
        public int UserId { get; set; }
        /// <summary>
        ///姓名(学生/项目经理姓名)
        /// </summary>
        public string FullName { get; set; }
        /// <summary>        
        ///手机号(学生/项目经理手机号)
        /// </summary>
        public string Mobile { get; set; }
        /// <summary>        
        ///登录账号(学生/项目经理登录账号)
        /// </summary>
        public string Account { get; set; }
        /// <summary>        
        ///密码(学生/项目经理密码)
        /// </summary>
        public string Password { get; set; }
        /// <summary>        
        ///头像(学生/项目经理头像)
        /// </summary>
        public string Avatar { get; set; }
        /// <summary>        
        ///微信OpenId(学生/项目经理微信OpenId头像)
        /// </summary>
        public string OpenId { get; set; }
        /// <summary>
        ///邮箱(学生/项目经理邮箱)
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        ///用户类型Id
        /// </summary>
        public int UserTypeId { get; set; }
        /// <summary>        
        ///项目经理Id
        /// </summary>
        public int? PMId { get; set; } = null;
        /// <summary>
        ///学生Id
        /// </summary>
        public int? StudentId { get; set; } = null;
    }
}